/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-05-14 23:16:20
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-05-15 15:03:18
 * @FilePath: \react_nest_demo\nest_service\src\user\user.module.ts
 * @Description: 用户模块
 */
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { JwtModule } from '@nestjs/jwt';

import { User } from './entities/user.entity';
import { UserController } from './user.controller';
import { UserService } from './user.service';

import { jwtConfig } from '../config/jwt';
import { JwtDecrypTool, SecreTool } from '../utils/internalTools';

@Module({
  imports: [TypeOrmModule.forFeature([User]), JwtModule.register(jwtConfig)],
  controllers: [UserController],
  providers: [UserService, SecreTool, JwtDecrypTool],
})
export class UserModule {}
